//
//  ModelBtn.swift
//  Tala
//
//  Created by 千策万划-mini on 2025/4/28.
//

import Foundation

struct ModelBtn: HandyJSON {
    var aryDatas:      NSMutableArray?
    
    var name:          String = ""
    var imageName:     String?
    var highImageName: String?
    
    var code:          String?
    var title:         String?
    var subTitle:      String?
    var content:       String?
    var desc:          String = ""
    var descId:        String = ""
    var data:          String = ""
    var leftTitle:     String?
    var rightTitle:    String?
    var vcName:        String?
    
    var color:         UIColor?
    var colorSelect:   UIColor?
    var colorShadow:   UIColor?
    
    var width:         CGFloat?
    var height:        CGFloat?
    var left:          CGFloat?
    var right:         CGFloat?
    var top:           CGFloat?
    var bottom:        CGFloat?
    
    var state:         Int?
    var tag:           Int?
    var isSelected:    Bool?
    var isHide:        Bool?
    
    var number:        Double?
    
    var enumCodes : [Int] = []
    var id = 0
    var alertContent = ""
    
    var gnawed:        Int = 0
    var cautiously:    String = ""
    var wisest:        Int = 0
    var daydfdgd:      String = ""
    
    
    var blockClick: (() -> Void)?
    
    static func model(
        withTitle title: String,
        imageName: String?,
        highImageName: String?,
        tag: Int,
        color: UIColor,
        selectColor: UIColor) -> ModelBtn
    {
        var model = ModelBtn()
        model.title = title
        model.imageName = imageName
        model.highImageName = highImageName
        model.tag = tag
        model.color = color
        model.colorSelect = selectColor
        return model
    }
}
